<template>
  <div>
    <div class="list-moreImg">
      <p @click="toDetail">{{title}}</p>
      <div class="content-imgs">
        <img v-for="(itemImg, index) in imgs" :key="index" class="list-oneimg" :src="$fixImgUrl(itemImg.url)" @click="toDetail">
      </div>
      <div class="left-news">
        <span>{{author}}</span>
        <i>52<span>跟帖</span></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  props: ['title', 'imgs', 'author', 'id'],
  methods: {
    toDetail() {
      this.$router.push({
        name: 'newsDetail',
        params: {
          id: this.id
        }
      })
    }
  }
}
</script>

<style  scoped>
.list-moreImg {
  padding: 4vw 2.5vw 4vw 4vw;
  border-bottom: 1px solid #e4e4e4;
}
.list-moreImg p {
  display: flex;
  font-size: 4.1vw;
  color: #333333;
  line-height: 6vw;
  height: 12vw;
  cursor: pointer;
}
.content-imgs {
  margin-top: 1vw;
  margin-bottom: 3vw;
}
.content-imgs img {
  width: 32%;
  height: 24vw;
  margin-right: 1px;
  cursor: pointer;
  object-fit: cover;
}
</style>
